package com.cai.xiaobai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cai.xiaobai.entity.DTO.fromInfo.addFrom.AddFromDTO;
import com.cai.xiaobai.entity.FromInfo;
import com.cai.xiaobai.result.Result;

/**
 * <p>
 * 调查问卷表 服务类
 * </p>
 *
 * @author author
 * @since 2024-05-13
 */
public interface IFromInfoService extends IService<FromInfo> {
    /**
     * 新增问卷调查
     */
    Result addFrom(AddFromDTO addFromDTO);

    /**
     * 查询自己的问卷数据
     */
    Result getMyFrom(String openId, String status, Boolean flag);

    /**
     * 删除问卷数据
     */
    Result delete(String ids);

    /**
     * 查看问卷的详细内容
     *
     * @param fromId 问卷id
     */
    Result getFromInfo(String fromId);
}
